<template>
<ul class="news-list">
  <li>编号{{id}}</li>
  <li>标题:{{title}}</li>
  <li>内容:{{content}}</li>
</ul>
</template>

<script setup lang="ts" name="About">
// import {toRefs} from "vue";
// import router from "@/router";
// import {useRoute} from "vue-router";
// // let params=useRoute()
// const route=useRoute()
// let {params}=toRefs(route)
// console.log(route)
//router 定义 props:true
defineProps(['id','title','content'])


</script>

<style scoped>

</style>